import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type Result = {
  success: boolean;
  data: Array<any>;
};

// export const getAsyncRoutes = () => {
//   return http.request<Result>("get", "/get-async-routes");
// };
export const getAsyncRoutes = () => {
  return http.request<Result>(
    "get",
    baseUrlApi("/admin/system/admin/async_routes")
  );
};
